.class Lcom/waiqin365/base/login/be;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 8

    const/4 v3, 0x0

    const v7, 0x7f040022

    const v6, 0x7f040021

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "START_CAMERA"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.media.action.IMAGE_CAPTURE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    sput-object v3, Lcom/fiberhome/gaea/client/c/b;->b:Landroid/net/Uri;

    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sput-wide v2, Lcom/fiberhome/gaea/client/c/b;->c:J

    const-string/jumbo v2, "datetaken"

    sget-wide v4, Lcom/fiberhome/gaea/client/c/b;->c:J

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    sget-object v3, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v2, v3, v1}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    move-result-object v1

    sput-object v1, Lcom/fiberhome/gaea/client/c/b;->b:Landroid/net/Uri;

    const-string/jumbo v1, "output"

    sget-object v2, Lcom/fiberhome/gaea/client/c/b;->b:Landroid/net/Uri;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/16 v2, 0x3e9

    invoke-virtual {v1, v0, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0, v7, v6}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string/jumbo v1, "START_PHOTO"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "android.intent.category.OPENABLE"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "image/*"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x13

    if-lt v1, v2, :cond_2

    iget-object v1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/16 v2, 0x3eb

    invoke-virtual {v1, v0, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0, v7, v6}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_2
    const-string/jumbo v1, "output"

    new-instance v2, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v3

    const-string/jumbo v4, "icon_image_temp.jpg"

    invoke-direct {v2, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-static {v2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/16 v2, 0x3e8

    invoke-virtual {v1, v0, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_1

    :cond_3
    const-string/jumbo v1, "FRESH_DATA_ICON"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->headIV:Landroid/widget/ImageView;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$200(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/widget/ImageView;

    move-result-object v1

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->getPic(Landroid/view/View;)V
    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$300(Lcom/waiqin365/base/login/LoginMainActivity;Landroid/view/View;)V

    goto :goto_0

    :cond_4
    const-string/jumbo v1, "FRESH_DOUBLE_MENU"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->updateShortCut()V

    goto :goto_0

    :cond_5
    const-string/jumbo v1, "NOTALLOW_LOC"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v1, 0x1

    # setter for: Lcom/waiqin365/base/login/LoginMainActivity;->isReceiveResult:Z
    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$402(Lcom/waiqin365/base/login/LoginMainActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-string/jumbo v1, "notallow"

    const/4 v2, 0x0

    invoke-virtual {p2, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    # setter for: Lcom/waiqin365/base/login/LoginMainActivity;->isnotallowloc:Z
    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$502(Lcom/waiqin365/base/login/LoginMainActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->isnotallowloc:Z
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$500(Lcom/waiqin365/base/login/LoginMainActivity;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v1, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-string/jumbo v0, "locobj"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/a;

    # setter for: Lcom/waiqin365/base/login/LoginMainActivity;->tempLocTask:Lcom/waiqin365/base/login/c/a;
    invoke-static {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$602(Lcom/waiqin365/base/login/LoginMainActivity;Lcom/waiqin365/base/login/c/a;)Lcom/waiqin365/base/login/c/a;

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->handleSoftInfoShow()V
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$700(Lcom/waiqin365/base/login/LoginMainActivity;)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/base/login/be;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # setter for: Lcom/waiqin365/base/login/LoginMainActivity;->tempLocTask:Lcom/waiqin365/base/login/c/a;
    invoke-static {v0, v3}, Lcom/waiqin365/base/login/LoginMainActivity;->access$602(Lcom/waiqin365/base/login/LoginMainActivity;Lcom/waiqin365/base/login/c/a;)Lcom/waiqin365/base/login/c/a;

    goto :goto_2
.end method
